package yl.hs.bmipfull.daos.production;

import org.apache.ibatis.annotations.Param;
import org.bouncycastle.cms.bc.BcKEKRecipientInfoGenerator;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.production.BrickShipOrderDetailEntity;

import java.math.BigDecimal;
import java.util.List;

/*
 * IBrickShipOrderDetailDao
 * @category
 * @author 谢景广
 * @date 2022-12-13
 */
@Repository
public interface IBrickShipOrderDetailDao extends BaseDao<BrickShipOrderDetailEntity> {
    Integer deleteDetailsByOrderSN(@Param("orderSN") String sn);

    List<BrickShipOrderDetailEntity> getListByOrderSN(String orderSN);

    Integer updateOrderToReviewed(@Param("snList") List<String> orderSnList, @Param("userSN")String userSN, @Param("userName")String userName, @Param("review") boolean review,@Param("code") short state);

    Integer cancelReview(@Param("orderSN") String orderSN);

    List<BrickShipOrderDetailEntity> queryDetailListBySNList(@Param("snList") List<String> snList);
    Integer updateWeight(String sn, BigDecimal quantity,BigDecimal volume);
}
